#include "gofgame/dungeonkeeper/game/item/ItemManager.h"

using namespace gofgame::dungeonkeeper::game::item;


Item * ItemManager::createById(int id){
	Item *item = nullptr;
	switch (id)
	{
	case 1:
		HpPotion *hp = HpPotion::create();
		item = (Item*)hp;
		break;
	}
	return item;
}

ItemElementViewInfo ItemManager::getItemElementViewInfo(int id) {
	ItemElementViewInfo ievi;
	switch (id)
	{
	case 1:
		ievi.imagePath = "Item/hp.png";
		ievi.name = "LIFE RECOVER";
		ievi.desc = "add hp info";
		ievi.price = 300;
		break;
	case 2:
		ievi.imagePath = "Item/hp.png";
		ievi.name = "LIFE RECOVER";
		ievi.desc = "add hp info";
		ievi.price = 300;
		break;
	case 3:
		ievi.imagePath = "Item/hp.png";
		ievi.name = "LIFE RECOVER";
		ievi.desc = "add hp info";
		ievi.price = 300;
		break;
	}
	return ievi;
}